/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.expert.entity.SolutionFaceProductMixStoreType;

/**
 * 方案产品搭配组合适用店面类型DAO接口
 * @author liujiang
 * @version 2014-02-17
 */
public interface SolutionFaceProductMixStoreTypeDao extends SolutionFaceProductMixStoreTypeDaoCustom, CrudRepository<SolutionFaceProductMixStoreType, Long> {
	@Modifying
	@Query("delete from SolutionFaceProductMixStoreType s where s.solutionFaceProductMix.id = ?1 AND s.storeType.id = ?2")
	public void delete(Long mid, Long tid);
}

/**
 * DAO自定义接口
 * @author liujiang
 */
interface SolutionFaceProductMixStoreTypeDaoCustom extends BaseDao<SolutionFaceProductMixStoreType> {

}

/**
 * DAO自定义接口实现
 * @author liujiang
 */
@Component
class SolutionFaceProductMixStoreTypeDaoImpl extends BaseDaoImpl<SolutionFaceProductMixStoreType> implements SolutionFaceProductMixStoreTypeDaoCustom {

}
